export default {
    namespaced:true,
    state:{
        userinfo:{
            user:'',
            token:null
        }
    },
    mutations:{
        //设置用户 清空用户
        setUser(state,payload){
            state.userinfo = payload;
        },
        //清空
        deleteUser(state){
            state.userinfo={
                user:'',
                token:null
            }
        }
    }
}